<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include.inc.jsp"%>
<c:import url="../../_frag/pager/pagerForm.jsp"></c:import>
<form method="post"  rel="pagerForm" action="<c:url value='/system/user/list'/>" onsubmit="return navTabSearch(this)">
<div class="panel collapse">
	<h1>查询条件</h1>
	<div class="pageFormContent">
		<fieldset>
		<dl>
			<dt>所属组织: </dt>
			<dd>
				<input type="hidden" name="orgId" bringBackName="org.um_organ_id" value="${param.orgId }">
				<input type="text" bringBackName="org.full_name" name="orgName" readonly value="${param.orgName }"/>
				<a class="btnLook" href='<c:url value="/system/orgselector"/>' lookupGroup="org">所属组织</a>
			</dd> 
	    </dl>
		</fieldset>
	    <div class="formBar">
			<ul>						
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
</div>
</form>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" target="dialog" rel="dialog_system_user_authorize" mask="true" href="<c:url value='/system/user/authorize?userId={slt_objId}'/>" title="分配组织"><span>分配组织</span></a></li>
			<li><a class="add" target="dialog" rel="dialog_system_user_assignmenu" mask="true" href="<c:url value='/system/user/assignmenu?userId={slt_objId}'/>" title="分配菜单"><span>分配菜单</span></a></li>
			<li><a class="edit" target="ajaxTodo" href="<c:url value='/system/user/enabled/{slt_objId}'/>" title="你确定要启用吗?"><span>启用</span></a></li>
			<li><a class="delete" target="ajaxTodo" href="<c:url value='/system/user/disabled/{slt_objId}'/>" title="你确定要停用吗?"><span>停用</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="80">
		<thead>
			<tr>
				<th width="50"></th>
				<th>登录名</th>
				<th>姓名</th>
				<th>性别</th>
				<th>启用</th>
				<th>电话</th>
				<th>邮箱</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach var="item" items="${users}" varStatus="s">
			<tr target="slt_objId" rel="${item.um_user_id }">
				<td>${s.index + 1}</td>
				<td>${item.user_name}</td>
				<td>${item.real_name}</td>
				<td>${item.gender eq 'M' ? '男':'女'}</td>
				<td>${item.enabled ? '已启用' : '未启用'}</td>
				<td>${item.mobile}</td>
				<td>${item.mail}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</div>